WARNING: This program runs, but it contains a logic error, so we need to fix it!

RULE: To multiply in Python, use the * symbol. To divide, use the / symbol.

  • Click Run to see the error on the stage. The triangle's area is incorrect: it's way too big!
  • Debug the program by using the correct math symbols and the correct formula of width*height / 2 (width times height divided by 2) to calculate the triangle's area.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)